import axios from '@/libs/api.request'
// 职务列表查询接口POST
export const listPostPage = ({
  pageNum,
  pageSize,
  postName
}) => {
  return axios.request({
    url: '/gas/domain/post/list',
    data: {
      pageNum,
      pageSize,
      postName
    },
    method: 'post'
  })
}
// 职务新增接口
// postName  职位名称  remark   备注
export const addPost = ({ postName, remark }) => {
  return axios.request({
    url: '/gas/domain/post/add',
    data: {
      postName, remark
    },
    method: 'post'
  })
}
// 职务修改接口
// postId 职务ID  postName 职位名称  remark 备注
export const updatePost = ({ postId, postName, remark }) => {
  return axios.request({
    url: '/gas/domain/post/update',
    data: {
      postId,
      postName,
      remark
    },
    method: 'post'
  })
}
// 职务删除接口
// postId 职务ID
export const deletePost = (postId) => {
  return axios.request({
    url: '/gas/domain/post/delete',
    data: {
      postId
    },
    method: 'post'
  })
}
